package org.threebitsoftware.tbb.dao;

import org.apache.log4j.Logger;

public class EmailAddress implements DeletableDomainObjectInterface {
	
	static Logger cLogger = Logger.getLogger(EmailAddress.class);

	String cStrEmailAddress = "";
	String cStrDescription = "";
	
	int iIdAppUser = -1;
	int iIdContact = -1;
	
	boolean markedForDeletion = false;

	
	public void EmailAddress() {
		
	}

	public EmailAddress(String strEmailAddress, String strDescription) {
		super();
		cStrEmailAddress = strEmailAddress;
		cStrDescription = strDescription;
	}

	public EmailAddress(String strEmailAddress, String strDescription,
			int idAppUser, int idContact) {
		super();
		cStrEmailAddress = strEmailAddress;
		cStrDescription = strDescription;
		iIdAppUser = idAppUser;
		iIdContact = idContact;
	}
	
	public String toString() {
		return "EmailAddress Object = E: " + cStrEmailAddress + " | D: " + cStrDescription + " | idAU: " + iIdAppUser + " | idC: " + iIdContact;
	}
	
	/*
	 * Getters and Setters
	 */
	
	
	/**
	 * @return the cStrEmailAddress
	 */
	public String getEmailAddress() {
		return cStrEmailAddress;
	}

	/**
	 * @param strEmailAddress the cStrEmailAddress to set
	 */
	public void setEmailAddress(String strEmailAddress) {
		cStrEmailAddress = strEmailAddress;
	}

	/**
	 * @return the cStrDescription
	 */
	public String getDescription() {
		return cStrDescription;
	}

	/**
	 * @param strDescription the cStrDescription to set
	 */
	public void setDescription(String strDescription) {
		cStrDescription = strDescription;
	}

	/**
	 * @return the iIdAppUser
	 */
	public int getIdAppUser() {
		return iIdAppUser;
	}

	/**
	 * @param idAppUser the iIdAppUser to set
	 */
	public void setIdAppUser(int idAppUser) {
		iIdAppUser = idAppUser;
	}

	/**
	 * @return the iIdContact
	 */
	public int getIdContact() {
		return iIdContact;
	}

	/**
	 * @param idContact the iIdContact to set
	 */
	public void setIdContact(int idContact) {
		iIdContact = idContact;
	}
	
	public void markForDeletion(boolean deleteMe)
	{
		markedForDeletion = deleteMe;
	}
	
	public boolean isMarkedForDeletion()
	{
		return markedForDeletion;
	}
}
